<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<script>
    /*
    * 字符串的解构赋值：
    *   1.数组形式对字符串进行解构赋值：因为字符串底层用数组保存数据
    *   let [a,b,c,d,e] = "yunmu"
    *   console.log(a,b,c,d,e)
    *
    *   2.对象形式对字符串进行解构赋值：数组本质是特殊的对象，字符串又是用数组存储数据
    *   let {0:a,1:b,2:c,3:d,4:e} = "yunmu"
    *   console.log(a,b,c,d,e)
    *
    * 其他数据结构如布尔值，数值，undefined，null等的解构赋值不重要，所以无需了解
    * */
</script>
</body>
</html>